/**
 * Created by ceshi-room on 2017/12/8.
 */
import ajax from './ajax';
import API from './apiuri';
const gitApi = API.gitApi;

export default {
  login (data) {
   return ajax({
     url: gitApi.login,
     data: data,
     method: 'POST'
   })
  },
  commit (data, commit) {
    return ajax({
      url: gitApi.commit + '?commit=' + commit,
      data: data,
      method: 'POST'
    })
  },
  push (data) {
    return ajax({
      url: gitApi.push,
      data: data,
      method: 'POST'
    })
  }
}
